package com.lee.tools;

import org.json.JSONException;
import org.json.JSONObject;

public class JsonResult {
    public static String fillResultString(Integer status,String message,Object result) throws JSONException {
    	JSONObject jsonobject  = new JSONObject() {{
    		put("status",status);
    		put("message",message);
    		put("result",result);
    	}};
    	return jsonobject.toString();
    }
    
    public static String fillTokenString(Integer status,String message,String token,Object result) throws JSONException {
    	JSONObject jsonobject  = new JSONObject() {{
    		put("status",status);
    		put("message",message);
    		put("token",token);
    		put("result",result);
    	}};
    	return jsonobject.toString();
    }
}